package com.courseware.online.dao;

import com.courseware.online.entity.Courseware;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CoursewareDao {
    List<Courseware> getCoursewareList(String name);

    Courseware getCoursewareById(int id);

    List<Courseware> getCoursewareByName(String name);

    int createCourseware(Courseware courseware);

    int updateById(Courseware courseware);

    int delete(int id);
}
